<?php

declare(strict_types=1);

namespace App\CustHub\Request;

use Mine\MineFormRequest;

class RoomBroadcastRequest extends MineFormRequest
{
    public function saveRules(): array
    {
        return [
            'wechat_type' => 'required|in:0,1'
        ];
    }

    public function getInfoRules(): array
    {
        return [
            'id' => 'required'
        ];
    }

    public function updateRules(): array
    {
        return array_merge([
            'id' => 'required'
        ],$this->saveRules());
    }

    public function copyRules(): array
    {
        return [
            'id' => 'required'
        ];
    }

    public function renameRules(): array
    {
        return [
            'id' => 'required',
            'name' => 'required'
        ];
    }

    public function changeStatusRules(): array
    {
        return [
            'id' => 'required',
            'status' => 'required|in:0,1'
        ];
    }

    public function deleteRules()
    {
        return [
            'id' => 'required'
        ];
    }

    public function recordsRules()
    {
        return [
            'plan_id' => 'required'
        ];
    }

    public function targetsRules()
    {
        return [
            'record_id' => 'required'
        ];
    }

    public function recallMessageRules()
    {
        return [
            'id' => 'required'
        ];
    }

    public function resendRules()
    {
        return [
            'id' => 'required'
        ];
    }
}